package com.example.myapplication.screen

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.zIndex

@Preview
@Composable
fun BoxTest(){
    Box (
        modifier = Modifier.fillMaxSize(),
        contentAlignment = Alignment.Center
    ){
        Text(text = "", modifier = Modifier.size(150.dp).background(Color.Red).zIndex(3F))
        Text(text = "", modifier = Modifier.size(200.dp).background(Color.Blue).zIndex(2F))
        Text(text = "", modifier = Modifier.size(250.dp).background(Color.Cyan).zIndex(1F))
    }
}